<?php
    
    require_once( MODEL_DIR . "Model.class.php");
    
    class AgendaModel extends Model{
        
        protected $query;
        
        public function __construct()
        {
            parent::__construct();
        }
        
        # Listar as Agendas de Show
            public function get_agenda_shows(){
            
            $type = 0;
            $hoje = date("Y-m-d");
            $dias = date("Y-m-d",strtotime("+15 Day"));
            
            $set_where = " (agenda_tipo = $type) and (agenda_data_prog >= '$hoje 00:00:00')  and (agenda_status = 0) and (geral = 1) ";
            $set_order = "agenda_data_prog ASC";
            
            return parent::read("agenda",$set_where,$set_order,25,1);
            
        }
                     
           
        
        
    }        
?>